﻿package com.eitb.rutas{
	import flash.net.*;
	public class RutaOlas {
		public static  const DOMINIO:String = "http://www.eitb.com/";
		private static  const RUTA_XML:String = "multimedia/xmls/";

		public function getRutaXml(id:String, idioma:String):URLRequest {
			var request:URLRequest = new URLRequest(RutaOlas.DOMINIO.concat(RutaOlas.RUTA_XML).concat(id).concat(new String("_")).concat(idioma).concat(".xml"));
			var variables:URLVariables = new URLVariables();
			variables.rnd = Math.ceil(Math.random() * 100000000).toString();
			request.data = variables;
			request.method = URLRequestMethod.POST;
			request.requestHeaders.push(new URLRequestHeader("pragma", "no-cache"));
			return request;
		}
	}
}